
package rawengine.sound.OpenAL;


import static org.lwjgl.openal.AL10.*;

import java.nio.FloatBuffer;

public class OpenALListener{
	
  public static int getPropi(int prop)
  {
    return alGetListeneri(prop);
  }

  public static float getPropf(int prop)
  {
    return alGetListenerf(prop);
  }

  public static void setPropi(int prop, int value)
  {
       alListeneri(prop, value);
  }

  public static void setPropf(int prop, float value)
  {
       alListenerf(prop, value);
  }

  public static void setProp3f(int prop, float value1, float value2, float value3)
  {
       alListener3f(prop, value1, value2, value3);
  }

  public static void setPosition(float x, float y, float z)
  {
    alListener3f(AL_POSITION, x, y, z);
  }
  
  public static void setPosition(FloatBuffer buffer)
  {
    alListener(AL_POSITION, buffer);
  }
  
  public static void setVelocity(float x, float y, float z)
  {
    alListener3f(AL_VELOCITY, x, y, z);
  }
  
  public static void setVelocity(FloatBuffer buffer)
  {
    alListener(AL_VELOCITY, buffer);
  }
  
  public static void setOrientation(float x, float y, float z)
  {
    alListener3f(AL_ORIENTATION, x, y, z);
  }
  
  public static void setOrientation(FloatBuffer buffer)
  {
    alListener(AL_ORIENTATION, buffer);
  }
  
}
